package com.hzsai.dao;

import com.hzsai.pojo.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDAO {

    public boolean insertUser(User user);

    public int queryUser(User user);

    public int queryNumByUser(User user);

    List<User> selectAllUser() throws SQLException;

    List<User> selectPagaUser(long current, long size) throws SQLException;

    User selectUserById(long id) throws SQLException;
}
